package com.banmao.algorithm.No501To700.No637;

import java.util.List;

public class Answer {

    public static void main(String[] args) {
        Solution1 solution = new Solution1();

        TreeNode root = new TreeNode(3, new TreeNode(9), new TreeNode(20, new TreeNode(15), new TreeNode(7)));
        List<Double> result = solution.averageOfLevels(root);

        for (Double aDouble : result) {
            System.out.print(aDouble + " ");
        }
    }

}
